import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * wallpaper模块-图片信息
 */
@Entity('wallpaper_image_info')
export class WallpaperImageInfoEntity extends BaseEntity {
  @Index()
  @Column({ comment: '图片', length: 255 })
  image: string;

  @Column({ comment: '分类', length: 255 })
  category: string;

  @Column({ comment: '描述', type: 'text', nullable: true })
  description: string;

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

}
